/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/shrinking_pinned_tabs.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */

/* Makes pinned tab width shrink dynamically, similar to unpinned tab width. */

:is(#pinned-tabs-container,#tabbrowser-arrowscrollbox:not([overflowing])) .tabbrowser-tab[pinned] {
  flex-grow: 10;
  max-width: 40px;
}

:root[uidensity="compact"] :is(#pinned-tabs-container,#tabbrowser-arrowscrollbox:not([overflowing])) .tabbrowser-tab[pinned] {
  max-width: 32px 
}

:is(#pinned-tabs-container,#tabbrowser-arrowscrollbox) .tab-content[pinned] {
  padding: 0px !important;
  justify-content: center;
}

.tab-label-container[pinned] {
  display: none;
}

/* Fixes flicker glitch. */
scrollbox[part][orient="horizontal"] {
    padding-inline: unset !important;
}

